package com.kla.power.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.kla.power.vo.BaseEntity;
import java.util.Date;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 用户表
 * </p>
 *
 * @author WuZH
 * @since 2024-06-02
 */
@Getter
@Setter
@TableName("user_info")
@ApiModel(value = "UserEntity对象", description = "用户表")
public class UserEntity extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("用户Id")
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    @ApiModelProperty("手机登录账号")
    @TableField("telPhone")
    private String telPhone;

    @ApiModelProperty("密码，MD5加密")
    @TableField("password")
    private String password;

    @ApiModelProperty("姓名")
    @TableField("name")
    private String name;

    @ApiModelProperty("性别")
    @TableField("sex")
    private String sex;

    @ApiModelProperty("所属商户Id")
    @TableField("merchantId")
    private String merchantId;

    @ApiModelProperty("关联角色表id")
    @TableField("roleId")
    private String roleId;

    @ApiModelProperty("身份证")
    @TableField("idCard")
    private String idCard;

    @ApiModelProperty("年龄")
    @TableField("age")
    private Integer age;

    @ApiModelProperty("邮箱")
    @TableField("email")
    private String email;

    @ApiModelProperty("居住地址")
    @TableField("address")
    private String address;

    @TableField("headImgUrl")
    private String headImgUrl;

    @ApiModelProperty("学历")
    @TableField("educationId")
    private String educationId;

    @ApiModelProperty("专业")
    @TableField("major")
    private String major;

    @ApiModelProperty("最后登录时间")
    @TableField("lastLoginTime")
    private Date lastLoginTime;

    @TableField("createTime")
    private Date createTime;

    @TableField("changeTime")
    private Date changeTime;

    @TableField("isUsed")
    private Integer isUsed;


    @TableField(exist = false)
    private List<MenuEntity> menuEntities;

}
